#ifndef COMMANDHANDLER_H
#define COMMANDHANDLER_H

#include "virtualdisk.h"
#include <QObject>
#include <QString>

class CommandHandler : public QObject {
    Q_OBJECT

private:
    VirtualDisk* vdisk;
    int current_dir_block;
    QString current_path;
    QVector<int> pathHistory;

public:
    explicit CommandHandler(VirtualDisk* vd, QObject *parent = nullptr);
    void processCommand(QString command);

signals:
    void outputGenerated(QString output);
    void clearRequested();
};

#endif // COMMANDHANDLER_H
